﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HA.ModFlow.Domain.DomainLayer;
namespace HA.Data
{
    [Serializable]
    public class BCBarrier:BCType,ICloneable
    {
        public BCBarrier()
            : base()
        {
 
        }

        double _hydChar;
       
        
        public double HydChar
        {
            get { return _hydChar; }
            set { _hydChar= value; }
        }

       

        public object Clone()
        {
            return this.MemberwiseClone();
        }

        public override void MapToModflow( List<double> stressPeriods, List<ValueResult> ijkList, ModFlow.Domain.DomainLayer.ModFlowData mf, FeatureObject owner)
        {
            List<HFBItem> hfbDatas = new List<HFBItem>();

            foreach (ValueResult item in ijkList)
            {
                HFBItem hfbItem = new HFBItem(item.I, item.J, item.K, item.I1, item.J1, this.HydChar);

                hfbDatas.Add(hfbItem);

            }

            mf.HfbData.AddTempHFBItems(hfbDatas);
        }

    }
}
